import 'package:p_location/user/obj/config_obj.dart';


class ResConfigSetting {
    ConfigObj data;
    int code;

    ResConfigSetting({this.data, this.code});

    factory ResConfigSetting.fromJson(Map<String, dynamic> json) {
        return ResConfigSetting(
            data: json['data'] != null ? ConfigObj.fromJson(json['data']) : null,
            code: json['code'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['code'] = this.code;
        if (this.data != null) {
            data['data'] = this.data.toJson();
        }
        return data;
    }
}